import request from '@/utils/request'

// 分页获取评论
export function getComment(page = 1, limit = 10,data) {
    return request({
        url: `/comment/${page}/${limit}`,
        method: 'put',
        data
    })
}

// 删除评论
export function delComment(data) {
    return request.delete({
        url: `/comment/`,
        data:data
    });
}